package com.baidu.ueditor;

import org.springframework.web.multipart.commons.CommonsMultipartResolver;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by cmcc on 2016/12/11.
 */
public class CommonsMultiparResolver extends CommonsMultipartResolver {

    @Override
    public boolean isMultipart(HttpServletRequest request) {
        String uri = request.getRequestURI();
        if (uri.indexOf("ued/config") > 0
                || uri.indexOf("upload/uploadfile") > 0){
            return false;
        }
        return super.isMultipart(request);
    }
}
